#include "HardwareProfile.h"
#include <stdio.h>
#include <stdlib.h>

void Display_MenuPage1( void )
{
		LCD160X_DispString(0,0,MenuPage1[0]);
		LCD160X_DispString(0,1,MenuPage1[1]);
}
void Display_MenuPage2( void )
{
	LCD160X_DispString(0,0,MenuPage2[0]);
	LCD160X_DispString(0,1,MenuPage2[1]);
}
void Display_VariablePage(void)
{
	unsigned char i,x;
	unsigned int t1,t2;
	unsigned long xxx;
	sprintf(DisplayLine,zm_TR,PageIndex);
	LCD160X_DispString(0,0,DisplayLine);
	for(i=0;i<4;i++)
	{
		DisplayLine[i]=' ';
		DisplayLine[12+i]=' ';
	}
	if(PageIndex==1)
	{
		sprintf(DisplayLine,"    %05d  s    ",0);
	}
	else
	{
		xxx=FireTime[PageIndex].u32;
 		if(FireTimeReaded[PageIndex]==0)
 			sprintf(DisplayLine,"    XXXXX s    ");
 		else if(xxx>99999)
			sprintf(DisplayLine,"    XXXXX s    ");
		else
			sprintf(DisplayLine,"    %05d  s    ",xxx);
	}
	DisplayLine[16]=0;
	DisplayLine[9]=DisplayLine[8];
	DisplayLine[8]=DisplayLine[7];
	DisplayLine[7]=DisplayLine[6];
	DisplayLine[6]='.';
	LCD160X_DispString(0,1,DisplayLine);
}

